﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSiteManagementSystem.Utils
{
    public class MathsTool
    {

        public static double MinFun(double x1,double x2)
        {
            double resultVal = x1;
            if(x2<=x1)
            {
                resultVal = x2;
            }
            return resultVal;
        }

        public static double MaxFun(double x1, double x2)
        {
            double resultVal = x1;
            if (x2 >= x1)
            {
                resultVal = x2;
            }
            return resultVal;
        }


    }
}
